package com.github.rxyor.redisson.client;

import java.util.concurrent.TimeUnit;

/**
 *<p>
 *
 *</p>
 *
 * @author liuyang
 * @date 2020/4/23 周四 11:31:00
 * @since 1.0.0
 */
public interface CarpRLock {

    void lockInterruptibly(String name, long leaseTime, TimeUnit unit) throws InterruptedException;

    boolean tryLock(String name, long waitTime, long leaseTime, TimeUnit unit) throws InterruptedException;

    void lock(String name, long leaseTime, TimeUnit unit);

    void unlock();
}
